package com.pmcc.core.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pmcc.core.enums.EmpType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.Date;

@Getter
@Setter
public class EmployeeSubVO {

    private String id;

    private String username;

    private String userCName;//用户中文名

    private String name;//姓名//

    private String mobile;//手机号

    @Enumerated(EnumType.STRING)
    private EmpType type;//账号类型

    private boolean enabled;

    private String roleName;

    private String createId;//创建人

    private String createName;//创建人名称

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间

    private String modifyId;//修改人

    private String modifyName;//修改人名称

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;//修改时间

    private String remark;//备注信息

    private Integer limitNum;//

}